package com.study.www.service.impl;

import com.study.www.exception.ResponseEnum;
import com.study.www.exception.assertion.BusinessExceptionAssert;
import com.study.www.model.JobConfig;
import com.study.www.model.mapper.ConfigRepository;
import com.study.www.service.ConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ConfigServiceImpl implements ConfigService {
    @Autowired
    ConfigRepository configRepository;

    @Override
    public List<JobConfig> findAll() {
        return configRepository.findAll();
    }

    @Override
    public String testVil() {
        ResponseEnum.BAD_LICENCE_TYPE.assertIsTrue(false);
        return null;
    }
}
